/*
 * While.h
 *
 *  Created on: Aug 5, 2009
 *      Author: ramesh
 */

#ifndef _COMPOSER_IF_H_
#define _COMPOSER_IF_H_

#include "Expression.h"


namespace SymphonyAST {


/* Even though this is not really a scope, I can inherit a lot of useful things this way */
/* If is composed of several branches. It is the if-elseif-else seen as a whole. if, elseif, else are Branch */
class If : public Context {
public:
	string getId() {
		return "if";
	}
};


class Branch : public Context {
public:
	Expression* expression;

	Branch() {
		expression = NULL;
	}

	string getId() {
		return "branch";
	}
};


}

#endif /* _COMPOSER_WHILE_H_ */

